home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: luzskru.cpcnet.com!not-for-mail
- From: cro99@cs.geneseo.edu (Craig Olrich)
- Subject: Wriring to the serial port
- Message-ID: <1a7cc$6323.211@luzskru.cpcnet.com>
- Date: Wed, 10 Jan 1996 06:03:35 GMT
- Organization: SUNY Geneseo
- X-Newsreader: WinVN 0.99.5
- MIME-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
-
- I've been working for a while, trying to write a DOS program that will
- write to the modem. The program is only for myself, so I know that the modem
- is in COM 1 and I know the number, so nothing needs to be taken from the user.
- I'm using Borland C++ v4.0. I discovered the _bios_serialcom function, but
- have not been able to use it to my liking. The function wants a COM port,
- either SEND, RECIEVE, or INIT, and then an unsigned int to write to the port.
- I tried sending ATZ (well, the ASCII equivalents) one by one and as a group,
- but I never got to hear the click sound that an ATZ should cause. Sending the
- number didn't work either. So, I'm kind of stumped. I have code that will
- dial if you type the ATDT5551212, but I really want to hard code the number in
- so all I have to do is double-click.
- Am I on the right track here? Is there something cryptic (or blatantly
- obvious) that needs to be done here? Can someone offer some help or a short
- bit of code? Thanks! (Also, is there an equivalent UNIX function? I run a
- Linux/Win95 system, and it might be fun to use gcc for some of my own code for
- a change.)
-
- -------------------------------------------------------------------------------
- - Craig Olrich --- Freshman CS major, SUNY Geneseo -
- - The good Lord knows that my opinions, except by happy conincidence, -
- - in no way reflect those of the Geneseo CS faculty, students, or -
- - custodians. Thank you and good night. -
- -------------------------------------------------------------------------------
-
-
-